package com.pearl.jacksonspringboot.demo.custom;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.List;
/**
 * @author TD
 * @version 1.0
 * @date 2024/4/11
 */
@Getter
@Setter
@ToString
public class User {

    @JsonSerialize(using = ToStringSerializer.class)
    Long id;

    String username;

    //@JsonSerialize(using = CustomJsonObjectSerializer.class)
    String password;



    List<String> roleList;
}
